package com.zhku.xxl.service.serviceImp;

import com.zhku.xxl.dao.AlumniAdminDao;
import com.zhku.xxl.dao.daoImp.AlumniAdminDaoImp;
import com.zhku.xxl.entity.AlumniAdmin;
import com.zhku.xxl.service.AlumniAdminService;
import com.zhku.xxl.service.GenericService;

public class AlumniAdminServiceImp extends GenericService<AlumniAdmin> implements AlumniAdminService {

                private AlumniAdminDao alumniAdminDao = new AlumniAdminDaoImp();
    @Override
    public AlumniAdmin findByAccount(String account) {
        return super.findByAccount(AlumniAdmin.class,account);
    }
    @Override
    public int updateInfo(String name, String contact, String email, String passwordFieldText, int Id) {
        return super.updateInfo(AlumniAdmin.class,name,contact,email, passwordFieldText, Id);
    }

    @Override
    public int insertAlumni(AlumniAdmin alumniAdmin) {
        return alumniAdminDao.insertAlumni(alumniAdmin.getId(),alumniAdmin.getUsername(),alumniAdmin.getPassword(), alumniAdmin.getAccount(), alumniAdmin.getContact(), alumniAdmin.getEmail(), alumniAdmin.getImageUrl());
    }

}
